interface ResponseData {
  code: number
  message: string
  ok: boolean
}

export interface AclUser {
  id?: number
  createTime?: string
  updateTime?: string
  username: string
  password: string
  name: string
  phone?: null
  roleName?: string
}

export type Records = AclUser[]

export interface AclUserResponseData extends ResponseData {
  data: {
    records: Records
    total: number
    size: number
    current: number
    orders: []
    optimizeCountSql: boolean
    hitCount: boolean
    countId: null
    maxLimit: null
    searchCount: boolean
    pages: number
  }
}

export interface AllRoles {
  id: number
  createTime: string
  updateTime: string
  roleName: string
  remark: null
}


export type RolesList = AllRoles[]

export interface AllRolesResponseData extends ResponseData {
  data: {
    assignRoles: RolesList
    allRolesList: RolesList
  }
}

export interface AssignRole {
  userId: number
  roleIdList: number[]
}